package edu.zju;

public class MoteInfo{
  private int id;
  private String phyId;
  private String usbPort;

  public MoteInfo(String[] parts){
    this.id = Integer.parseInt(parts[0]);
    this.phyId = parts[1];
    this.usbPort = parts[2];
  }

  public MoteInfo(int id,String phyId,String usbPort){
    this.id = id;
    this.phyId = phyId;
    this.usbPort = usbPort;
  }

  public void setId(int id){
    this.id = id;
  }
  public void setPhyId(String phyId){
    this.phyId = phyId;
  }
  public void setUsbPort(String usbPort){
    this.usbPort = usbPort;
  }

  public int getId(){
    return id;
  }
  public String getPhyId(){
    return phyId;
  }
  public String getUsbPort(){
    return usbPort;
  }
}
